$(function(){
	var all_url = "http://api20.scsj.net.cn";
	var token = $.cookie("token");
	$.ajax({
		url: all_url+"/user/userCommission.do",
		type: "post",
		data: {tocken:token},
		success:function(data){
			if(data.code==200){
				data = data.result;
				$(".name").text(data.name);
				$(".price").text(data.money+".00");
				if(data.user_avatar){
					$(".photo img").attr("src",data.user_avatar);
				}
				$(".checkIncome").text(0);
				$(".withDraw_left").find("span").eq(1).text(data.leftMoney);
			}else{
				alert("获取信息失败");
			}
			
		},
		error:function(){
			alert("获取信息失败");
		}
	})
})